
<?php if (Yii::$app->user->isGuest): ?>

    <div class="panel panel-default">
        <div class="panel-body">
            <h2 class="h4 title" style="color: #D0021B">最专业的问答社区</h2>
            <p>最前沿的技术问答，最纯粹的技术切磋。让你不知不觉中开拓眼界，提高技能，认识更多朋友。</p>
            <a href="<?php echo Yii::$app->urlManager->createUrl(['user/login']); ?>" class="btn btn-success btn-default btn-block">登&nbsp;&nbsp;&nbsp;录</a>
            <a href="<?php echo Yii::$app->urlManager->createUrl(['user/register']); ?>" class="btn btn-danger btn-default btn-block">注&nbsp;&nbsp;&nbsp;册</a>
        </div>
    </div>

<?php else: ?>
    <ul class="list-group">
        <li class="list-group-item"><span class="glyphicon glyphicon-heart color-green"></span> <a href="<?php echo Yii::$app->urlManager->createUrl(['user/collect']); ?>">我的收藏</a></li>
        <li class="list-group-item"><span class="glyphicon glyphicon-erase color-green"></span> <a href="<?php echo Yii::$app->urlManager->createUrl(['user/attention']); ?>">我关注的问题</a></li>
        <li class="list-group-item"><span class="glyphicon glyphicon-envelope color-green"></span> <a href="<?php echo Yii::$app->urlManager->createUrl(['user/invitation']); ?>">邀请朋友加入</a></li>
    </ul>
<?php endif; ?>